package com.fozu.office.sale.service;
/*
 * 销售预测
 */
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fozu.office.sale.dao.PredictDao;
import com.fozu.office.sale.entity.PredictVO;
@Service("predictService")
@Transactional(readOnly=true)
public class PredictServiceImpl {
	@Autowired
	private PredictDao pdao;
	//预测列表（分页）
	public IPage<PredictVO> listPredict(Page<PredictVO> age,PredictVO predict){
		return pdao.listPredict(age, predict);
	}
	//通过Id拿对象
	public PredictVO getPredictById(PredictVO predict){
		return pdao.getPredictById(predict);
	}
	//添加
	@Transactional(readOnly=false)
	public void addPredict(PredictVO predict){
		pdao.addPredict(predict);
	}
}
